Reencoding PostScript fonts
Most of the raw PostScript TFM files distributed with use
the 8r
encoding. The corresponding screen and printer fonts
do not use this encoding, so must be told to reencode the
screen fonts and dvips must be told to reencode the printer fonts.
To reencode screen fonts (during previewing and non-PostScript printing),
uses information stored in encoding files.
The names of these files can appear in a config file's list
of PostScript fonts.
For example, the Default config file includes an entry like this:
ptmr8r Times-Roman Times Mac8r.enc
This tells to map character codes from ptmr8r.tfm to
characters in the Times screen font using a mapping defined in Mac8r.enc.
looks for encoding files in the ps_folders
list
(it does not look in the current folder first).
For more information about encoding files, see section
.
Note that ignores the Times-Roman field; it only serves
as a reminder of which printer font is represented by the rather
cryptic TFM name.
To reencode printer fonts, dvips gets the necessary information
from psfonts.map. The file supplied in :DVIPS:Inputs:
contains lines like:
ptmr8r Times-Roman "TeXBase1Encoding ReEncodeFont" <8r.enc
This tells dvips to reencode ptmr8r.tfm using an
encoding vector called TeXBase1Encoding.
The vector is downloaded in a file called 8r.enc;
dvips looks for 8r.enc in the current folder first, then
in the ps_folders
list.
NOTE: Screen font reencoding is not as reliable as printer font reencoding
because some characters simply don't exist in Mac screen fonts.
(Font suitcases normally use the standard Mac text encoding
called ``Standard Roman Encoding''.)
This means that 's preview might not match the output from dvips.
Even worse, people with non-PostScript printers won't be able to print
the full range of reencoded characters.
The solution to this problem is to use a font editor/creator like
Fontographer to create suitable Mac fonts, or to purchase such fonts from
a supplier like Y&Y. (Y&Y also sell a font manipulation package that
lets you create new font suitcases to match PostScript fonts, but it
is only available for DOS machines.)